import _mountSpawn from './_mountSpawn'
import _mountSource from './_mountSource'
import _mountController from './_mountController'
import _mountRoom from './_mountRoom'
import _mountStructure from './_mountStructure'
import _mountExtension from './_mountExtension'
import _mountContainer from './_mountContainer'
import _mountWall from './_mountWall'

/** 拓展所有原型方法 */
const mountManager = {
    init: function () {
        if (!global.hasExtension) {
            try {
                _mountSpawn()
                _mountSource()
                _mountController()
                _mountRoom()
                _mountStructure()
                _mountExtension()
                _mountContainer()
                _mountWall()

                global.hasExtension = true
                console.log(`${Date()} :原型方法加载完成`);
            } catch (error) {
                throw new Error(`${Date()} :原型方法加载出错`)
            }

        }
    }
}

export default mountManager